package com.open.common.constants;

/**
 * 通用常量信息
 *
 * @author dashu03
 */
public class Constants {
    // UTF-8 字符集
    public static final String UTF8 = "UTF-8";

    // GBK 字符集
    public static final String GBK = "GBK";

    // 通用分割标志
    public static final String SPLIT_FLAG = ";";

    // 管理员权限标识
    public static final String ROLE_KEY_ADMIN = "admin";

    // 普通用户权限标识
    public static final String ROLE_KEY_COMMON = "common";

    // 临时用户权限标识
    public static final String ROLE_KEY_TEMPLATE = "template";

    // 系统操作标识
    public static final String OPERATE_SYSTEM = "system";

    // 新用户默认密码
    public static final String DEFAULT_PASSWORD = "admin123";

    //菜单
    public static final String MENU = "C";

    //目录
    public static final String CATALOG =  "M";

    //权限
    public static final String BUTTON = "F";

    // Layout组件标识
    public final static String LAYOUT = "Layout";

    // ParentView组件标识
    public final static String PARENT_VIEW = "ParentView";

    // True
    public static final String TRUE = "true";
    // False
    public static final String FALSE = "false";

    //用户存储redis目录
    public static final String USER_REDIS = "open_sys:User:";
    //验证码缓存redis目录
    public static final String CODE_REDIS = "open_sys:Code:";

    // 自动识别json对象白名单配置（仅允许解析的包名，范围越小越安全）
    public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.open" };
}